Add Methods to the Type Library

The methods in the class you specified when you created the type library will become User Defined Functions that appear in the Crystal Reports Formula Editor.

  1. Right-click the interface for your type library. The interface name is identical to the class name you specified preceded by an I.
  2. Choose New from the menu that appears, and choose Method.

    A new method appears below the interface in the Object list pane.

  3. Name the method according to the function you want to create.
  4. On the Attributes Tab for the method, declare your function. For example:

function Square (Number: double): double;

Note:    For complete information on how to declare functions in Delphi, refer to your Delphi documentation.

The U2LCOM.DLL UFL supports most standard Delphi data types and arrays. For complete information on how the Crystal Reports Formula Editor interprets Delphi data types and arrays, see Delphi and Crystal Reports.

Continue creating methods for all User Defined Functions you want to appear in the Crystal Reports Formula Editor.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com